if [ -n "$1" ]; then
  if [ -b /dev/$1 ]; then
    if [ ! -d /mnt/media ]; then
      mkdir -p /mnt/media
    fi
    if [ ! -d /mnt/media/$1 ]; then
      mkdir -p /mnt/media/$1
    fi
      mount /dev/$1 /mnt/media/$1
      mkdir -p /mnt/media/$1/5M
      mkdir -p /mnt/media/$1/100M
    if [ $? -ne 0 ]; then
      rm -rf /mnt/media/$1
    fi
  fi
fi
